package com.witte.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.witte.entity.CustomerPlan;
import com.witte.entity.Service;

@Mapper
public interface CustomerPlanMapper {
    int deleteByPrimaryKey(Integer planno);

    int insert(CustomerPlan record);

    int insertSelective(CustomerPlan record);

    CustomerPlan selectByPrimaryKey(Integer planno);
    
    List<CustomerPlan> selectByPage(
    		@Param("beginPage") Integer beginPage,@Param("pageSize") Integer pageSize);
    
    List<CustomerPlan> selectByPageName(@Param("username") String username,
    		@Param("beginPage") Integer beginPage,@Param("pageSize") Integer pageSize);
    
    int getTotle();
    
    int getTotleByName(String name);

    List<CustomerPlan> searchUseName(@Param("username")String username,@Param("content") String content);
    
    List<CustomerPlan> search(@Param("content") String content);
    
    int updateByPrimaryKeySelective(CustomerPlan record);

    int updateByPrimaryKey(CustomerPlan record);
}